package com.cory.admin.sys.mapper;

import com.cory.admin.sys.domain.entity.SysArea;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 区域表(数据来自京东) Mapper 接口
 *
 * @author lw
 * @since 2022-01-23
 */
public interface SysAreaMapper extends BaseMapper<SysArea> {

    List<SysArea> selectByParentId(Integer parentId);

    List<SysArea> selectByType(String type);

    List<SysArea> selectAreaByCityId(Integer cityId);

    List<SysArea> selectAreaByCountyId(Integer countryId);

}
